
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.


   Welcome!

> set.seed(1)
> library(Matching)
Loading required package: rgenoud
Loading required package: MASS
## 
##  Matching (Version 4.4-14, Build Date: 2007/08/06)
##  See http://sekhon.berkeley.edu/matching for additional documentation.
##  Please cite software as:
##   Jasjeet S. Sekhon. 2007. ``Multivariate and Propensity Score Matching
##   Software with Automated Balance Optimization: The Matching package for R.''
##   Journal of Statistical Software. 
##
> 
> #N=20, K=20
> 
> n=20
> k=20
> x=matrix(rnorm(n*k),n,k)
> t=as.numeric(runif(n)>.5)
> 
> b.out<-MatchBalance(t~x, nboots=1000,nmc=1000)

***** (V1) x1 *****
before matching:
mean treatment........ -0.068703 
mean control.......... 0.44975 
std mean diff......... -46.987 

mean raw eQQ diff..... 0.53878 
med  raw eQQ diff..... 0.4692 
max  raw eQQ diff..... 1.5935 

mean eCDF diff........ 0.16 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.4 

var ratio (Tr/Co)..... 3.0908 
T-test p-value........ 0.21704 
KS Bootstrap p-value.. 0.367 
KS Naive p-value...... 0.41752 
KS Statistic.......... 0.4 


***** (V2) x2 *****
before matching:
mean treatment........ -0.26819 
mean control.......... 0.25525 
std mean diff......... -58.64 

mean raw eQQ diff..... 0.52344 
med  raw eQQ diff..... 0.46053 
max  raw eQQ diff..... 0.9926 

mean eCDF diff........ 0.15 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.4 

var ratio (Tr/Co)..... 1.2185 
T-test p-value........ 0.18638 
KS Bootstrap p-value.. 0.355 
KS Naive p-value...... 0.41752 
KS Statistic.......... 0.4 


***** (V3) x3 *****
before matching:
mean treatment........ 0.045477 
mean control.......... 0.23212 
std mean diff......... -19.395 

mean raw eQQ diff..... 0.35328 
med  raw eQQ diff..... 0.43636 
max  raw eQQ diff..... 0.54738 

mean eCDF diff........ 0.12 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.3 

var ratio (Tr/Co)..... 2.1103 
T-test p-value........ 0.62032 
KS Bootstrap p-value.. 0.698 
KS Naive p-value...... 0.78693 
KS Statistic.......... 0.3 


***** (V4) x4 *****
before matching:
mean treatment........ 0.30993 
mean control.......... -0.10646 
std mean diff......... 41.712 

mean raw eQQ diff..... 0.41640 
med  raw eQQ diff..... 0.26449 
max  raw eQQ diff..... 0.87086 

mean eCDF diff........ 0.12 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.3 

var ratio (Tr/Co)..... 0.80636 
T-test p-value........ 0.3899 
KS Bootstrap p-value.. 0.68 
KS Naive p-value...... 0.78693 
KS Statistic.......... 0.3 


***** (V5) x5 *****
before matching:
mean treatment........ -0.19499 
mean control.......... 0.43470 
std mean diff......... -72.229 

mean raw eQQ diff..... 0.62969 
med  raw eQQ diff..... 0.66603 
max  raw eQQ diff..... 0.89813 

mean eCDF diff........ 0.21 
med  eCDF diff........ 0.2 
max  eCDF diff........ 0.4 

var ratio (Tr/Co)..... 0.986 
T-test p-value........ 0.12493 
KS Bootstrap p-value.. 0.341 
KS Naive p-value...... 0.41752 
KS Statistic.......... 0.4 


***** (V6) x6 *****
before matching:
mean treatment........ -0.051574 
mean control.......... 0.27923 
std mean diff......... -40.671 

mean raw eQQ diff..... 0.34783 
med  raw eQQ diff..... 0.30922 
max  raw eQQ diff..... 0.67152 

mean eCDF diff........ 0.12 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.3 

var ratio (Tr/Co)..... 0.9765 
T-test p-value........ 0.37794 
KS Bootstrap p-value.. 0.694 
KS Naive p-value...... 0.78693 
KS Statistic.......... 0.3 


***** (V7) x7 *****
before matching:
mean treatment........ -0.41661 
mean control.......... -0.017942 
std mean diff......... -58.73 

mean raw eQQ diff..... 0.41079 
med  raw eQQ diff..... 0.30159 
max  raw eQQ diff..... 0.8663 

mean eCDF diff........ 0.12 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.3 

var ratio (Tr/Co)..... 1.1722 
T-test p-value........ 0.18940 
KS Bootstrap p-value.. 0.706 
KS Naive p-value...... 0.78693 
KS Statistic.......... 0.3 


***** (V8) x8 *****
before matching:
mean treatment........ -0.45328 
mean control.......... -0.35374 
std mean diff......... -8.5984 

mean raw eQQ diff..... 0.30579 
med  raw eQQ diff..... 0.30622 
max  raw eQQ diff..... 0.44497 

mean eCDF diff........ 0.1 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.3 

var ratio (Tr/Co)..... 0.831 
T-test p-value........ 0.85672 
KS Bootstrap p-value.. 0.678 
KS Naive p-value...... 0.78693 
KS Statistic.......... 0.3 


***** (V9) x9 *****
before matching:
mean treatment........ 0.71105 
mean control.......... 0.25144 
std mean diff......... 42.921 

mean raw eQQ diff..... 0.64104 
med  raw eQQ diff..... 0.76576 
max  raw eQQ diff..... 1.0479 

mean eCDF diff........ 0.21 
med  eCDF diff........ 0.2 
max  eCDF diff........ 0.4 

var ratio (Tr/Co)..... 1.5517 
T-test p-value........ 0.30451 
KS Bootstrap p-value.. 0.332 
KS Naive p-value...... 0.41752 
KS Statistic.......... 0.4 


***** (V10) x10 *****
before matching:
mean treatment........ -0.35769 
mean control.......... 0.031024 
std mean diff......... -40.994 

mean raw eQQ diff..... 0.38871 
med  raw eQQ diff..... 0.31073 
max  raw eQQ diff..... 0.78309 

mean eCDF diff........ 0.15 
med  eCDF diff........ 0.15 
max  eCDF diff........ 0.3 

var ratio (Tr/Co)..... 1.1943 
T-test p-value........ 0.35165 
KS Bootstrap p-value.. 0.709 
KS Naive p-value...... 0.78693 
KS Statistic.......... 0.3 


***** (V11) x11 *****
before matching:
mean treatment........ 0.32469 
mean control.......... 0.20536 
std mean diff......... 9.5247 

mean raw eQQ diff..... 0.51572 
med  raw eQQ diff..... 0.53208 
max  raw eQQ diff..... 0.91503 

mean eCDF diff........ 0.09 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.2 

var ratio (Tr/Co)..... 1.3972 
T-test p-value........ 0.8208 
KS Bootstrap p-value.. 0.972 
KS Naive p-value...... 0.99446 
KS Statistic.......... 0.2 


***** (V12) x12 *****
before matching:
mean treatment........ -0.26655 
mean control.......... -0.45034 
std mean diff......... 16.861 

mean raw eQQ diff..... 0.32485 
med  raw eQQ diff..... 0.25398 
max  raw eQQ diff..... 1.1557 

mean eCDF diff........ 0.07 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.2 

var ratio (Tr/Co)..... 1.0221 
T-test p-value........ 0.70907 
KS Bootstrap p-value.. 0.973 
KS Naive p-value...... 0.99446 
KS Statistic.......... 0.2 


***** (V13) x13 *****
before matching:
mean treatment........ -0.35608 
mean control.......... 0.40506 
std mean diff......... -66.531 

mean raw eQQ diff..... 0.76114 
med  raw eQQ diff..... 0.59594 
max  raw eQQ diff..... 1.8583 

mean eCDF diff........ 0.21 
med  eCDF diff........ 0.2 
max  eCDF diff........ 0.5 

var ratio (Tr/Co)..... 3.9792 
T-test p-value........ 0.082148 
KS Bootstrap p-value.. 0.14 
KS Naive p-value...... 0.16782 
KS Statistic.......... 0.5 


***** (V14) x14 *****
before matching:
mean treatment........ 0.37561 
mean control.......... -0.22393 
std mean diff......... 43.977 

mean raw eQQ diff..... 0.84397 
med  raw eQQ diff..... 0.86227 
max  raw eQQ diff..... 1.1884 

mean eCDF diff........ 0.22 
med  eCDF diff........ 0.2 
max  eCDF diff........ 0.5 

var ratio (Tr/Co)..... 2.58 
T-test p-value........ 0.25607 
KS Bootstrap p-value.. 0.125 
KS Naive p-value...... 0.16782 
KS Statistic.......... 0.5 


***** (V15) x15 *****
before matching:
mean treatment........ 0.10884 
mean control.......... 0.17408 
std mean diff......... -6.997 

mean raw eQQ diff..... 0.33004 
med  raw eQQ diff..... 0.34147 
max  raw eQQ diff..... 0.75808 

mean eCDF diff........ 0.1 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.3 

var ratio (Tr/Co)..... 1.4589 
T-test p-value........ 0.86664 
KS Bootstrap p-value.. 0.722 
KS Naive p-value...... 0.78693 
KS Statistic.......... 0.3 


***** (V16) x16 *****
before matching:
mean treatment........ 0.48635 
mean control.......... -0.065324 
std mean diff......... 61.931 

mean raw eQQ diff..... 0.55168 
med  raw eQQ diff..... 0.54678 
max  raw eQQ diff..... 0.7946 

mean eCDF diff........ 0.16 
med  eCDF diff........ 0.15 
max  eCDF diff........ 0.4 

var ratio (Tr/Co)..... 0.90028 
T-test p-value........ 0.19442 
KS Bootstrap p-value.. 0.348 
KS Naive p-value...... 0.41752 
KS Statistic.......... 0.4 


***** (V17) x17 *****
before matching:
mean treatment........ 0.33979 
mean control.......... -0.15094 
std mean diff......... 50.412 

mean raw eQQ diff..... 0.57739 
med  raw eQQ diff..... 0.49422 
max  raw eQQ diff..... 1.1418 

mean eCDF diff........ 0.2 
med  eCDF diff........ 0.2 
max  eCDF diff........ 0.5 

var ratio (Tr/Co)..... 1.3083 
T-test p-value........ 0.24590 
KS Bootstrap p-value.. 0.14 
KS Naive p-value...... 0.16782 
KS Statistic.......... 0.5 


***** (V18) x18 *****
before matching:
mean treatment........ -0.20249 
mean control.......... 0.24685 
std mean diff......... -66.29 

mean raw eQQ diff..... 0.9244 
med  raw eQQ diff..... 0.92586 
max  raw eQQ diff..... 1.2277 

mean eCDF diff........ 0.24 
med  eCDF diff........ 0.2 
max  eCDF diff........ 0.5 

var ratio (Tr/Co)..... 0.21049 
T-test p-value........ 0.39836 
KS Bootstrap p-value.. 0.147 
KS Naive p-value...... 0.16782 
KS Statistic.......... 0.5 


***** (V19) x19 *****
before matching:
mean treatment........ -0.08083 
mean control.......... -0.23783 
std mean diff......... 14.141 

mean raw eQQ diff..... 0.41603 
med  raw eQQ diff..... 0.35649 
max  raw eQQ diff..... 1.2290 

mean eCDF diff........ 0.13 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.4 

var ratio (Tr/Co)..... 1.8091 
T-test p-value........ 0.72422 
KS Bootstrap p-value.. 0.347 
KS Naive p-value...... 0.41752 
KS Statistic.......... 0.4 


***** (V20) x20 *****
before matching:
mean treatment........ 0.21775 
mean control.......... -0.037321 
std mean diff......... 33.098 

mean raw eQQ diff..... 0.59393 
med  raw eQQ diff..... 0.54783 
max  raw eQQ diff..... 1.2050 

mean eCDF diff........ 0.13 
med  eCDF diff........ 0.1 
max  eCDF diff........ 0.3 

var ratio (Tr/Co)..... 0.35112 
T-test p-value........ 0.60166 
KS Bootstrap p-value.. 0.714 
KS Naive p-value...... 0.78693 
KS Statistic.......... 0.3 


Before Matching Minimum p.value: 0.082148 
Variable Name(s): x13  Number(s): 13 

> 
> # N=1000, K=10
> 
> n=1000
> k=10
> x=matrix(rnorm(n*k),n,k)
> t=as.numeric(runif(n)>.5)
> b.out<-MatchBalance(t~x, nboots=1000,nmc=1000)

***** (V1) x1 *****
before matching:
mean treatment........ -0.033408 
mean control.......... -0.005543 
std mean diff......... -2.8691 

mean raw eQQ diff..... 0.055782 
med  raw eQQ diff..... 0.041011 
max  raw eQQ diff..... 1.4800 

mean eCDF diff........ 0.013717 
med  eCDF diff........ 0.010525 
max  eCDF diff........ 0.04986 

var ratio (Tr/Co)..... 0.93433 
T-test p-value........ 0.65629 
KS Bootstrap p-value.. 0.499 
KS Naive p-value...... 0.56435 
KS Statistic.......... 0.04986 


***** (V2) x2 *****
before matching:
mean treatment........ -0.04466 
mean control.......... 0.0026132 
std mean diff......... -4.7096 

mean raw eQQ diff..... 0.066082 
med  raw eQQ diff..... 0.053987 
max  raw eQQ diff..... 0.67683 

mean eCDF diff........ 0.014961 
med  eCDF diff........ 0.014165 
max  eCDF diff........ 0.04201 

var ratio (Tr/Co)..... 1.0608 
T-test p-value........ 0.45021 
KS Bootstrap p-value.. 0.749 
KS Naive p-value...... 0.77057 
KS Statistic.......... 0.04201 


***** (V3) x3 *****
before matching:
mean treatment........ -0.0054958 
mean control.......... -0.013834 
std mean diff......... 0.84212 

mean raw eQQ diff..... 0.061356 
med  raw eQQ diff..... 0.041967 
max  raw eQQ diff..... 1.062 

mean eCDF diff........ 0.013023 
med  eCDF diff........ 0.0098173 
max  eCDF diff........ 0.046923 

var ratio (Tr/Co)..... 0.95009 
T-test p-value........ 0.8956 
KS Bootstrap p-value.. 0.608 
KS Naive p-value...... 0.6419 
KS Statistic.......... 0.046923 


***** (V4) x4 *****
before matching:
mean treatment........ 0.016389 
mean control.......... -0.038433 
std mean diff......... 5.8814 

mean raw eQQ diff..... 0.090543 
med  raw eQQ diff..... 0.053143 
max  raw eQQ diff..... 0.67355 

mean eCDF diff........ 0.020567 
med  eCDF diff........ 0.014079 
max  eCDF diff........ 0.059056 

var ratio (Tr/Co)..... 0.82723 
T-test p-value........ 0.37781 
KS Bootstrap p-value.. 0.307 
KS Naive p-value...... 0.3489 
KS Statistic.......... 0.059056 


***** (V5) x5 *****
before matching:
mean treatment........ -0.09908 
mean control.......... 0.023540 
std mean diff......... -12.307 

mean raw eQQ diff..... 0.13122 
med  raw eQQ diff..... 0.14670 
max  raw eQQ diff..... 0.55335 

mean eCDF diff........ 0.038967 
med  eCDF diff........ 0.038213 
max  eCDF diff........ 0.090391 

var ratio (Tr/Co)..... 1.1175 
T-test p-value........ 0.0458 
KS Bootstrap p-value.. 0.029 
KS Naive p-value...... 0.033879 
KS Statistic.......... 0.090391 


***** (V6) x6 *****
before matching:
mean treatment........ 0.012744 
mean control.......... -0.0094277 
std mean diff......... 2.1408 

mean raw eQQ diff..... 0.062115 
med  raw eQQ diff..... 0.044145 
max  raw eQQ diff..... 0.37631 

mean eCDF diff........ 0.013298 
med  eCDF diff........ 0.012809 
max  eCDF diff........ 0.033952 

var ratio (Tr/Co)..... 1.0987 
T-test p-value........ 0.72912 
KS Bootstrap p-value.. 0.921 
KS Naive p-value...... 0.93586 
KS Statistic.......... 0.033952 


***** (V7) x7 *****
before matching:
mean treatment........ 0.081778 
mean control.......... 0.034559 
std mean diff......... 4.5555 

mean raw eQQ diff..... 0.058604 
med  raw eQQ diff..... 0.042827 
max  raw eQQ diff..... 0.82338 

mean eCDF diff........ 0.013191 
med  eCDF diff........ 0.011763 
max  eCDF diff........ 0.039005 

var ratio (Tr/Co)..... 1.0726 
T-test p-value........ 0.46392 
KS Bootstrap p-value.. 0.816 
KS Naive p-value...... 0.84217 
KS Statistic.......... 0.039005 


***** (V8) x8 *****
before matching:
mean treatment........ -0.0032512 
mean control.......... 0.064385 
std mean diff......... -7.0043 

mean raw eQQ diff..... 0.09724 
med  raw eQQ diff..... 0.094339 
max  raw eQQ diff..... 0.43099 

mean eCDF diff........ 0.026567 
med  eCDF diff........ 0.021680 
max  eCDF diff........ 0.077132 

var ratio (Tr/Co)..... 0.8964 
T-test p-value........ 0.28281 
KS Bootstrap p-value.. 0.088 
KS Naive p-value...... 0.10265 
KS Statistic.......... 0.077132 


***** (V9) x9 *****
before matching:
mean treatment........ -0.0098934 
mean control.......... -0.057896 
std mean diff......... 4.8461 

mean raw eQQ diff..... 0.065052 
med  raw eQQ diff..... 0.044596 
max  raw eQQ diff..... 0.49577 

mean eCDF diff........ 0.013519 
med  eCDF diff........ 0.011442 
max  eCDF diff........ 0.04425 

var ratio (Tr/Co)..... 1.0479 
T-test p-value........ 0.43862 
KS Bootstrap p-value.. 0.668 
KS Naive p-value...... 0.71284 
KS Statistic.......... 0.04425 


***** (V10) x10 *****
before matching:
mean treatment........ 0.039074 
mean control.......... 0.043179 
std mean diff......... -0.41058 

mean raw eQQ diff..... 0.051666 
med  raw eQQ diff..... 0.040368 
max  raw eQQ diff..... 0.65284 

mean eCDF diff........ 0.012366 
med  eCDF diff........ 0.011090 
max  eCDF diff........ 0.037586 

var ratio (Tr/Co)..... 1.0467 
T-test p-value........ 0.94769 
KS Bootstrap p-value.. 0.833 
KS Naive p-value...... 0.87243 
KS Statistic.......... 0.037586 


Before Matching Minimum p.value: 0.029 
Variable Name(s): x5  Number(s): 5 

> 
> q()

   Goodbye!

